<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
      xmlns:mo="https://gitee.com/aun/Timo"
      xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head th:replace="/common/template :: header(~{::title},~{::link},~{::style})">
<link rel="stylesheet" th:href="@{/lib/zTree_v3/css/zTreeStyle/zTreeStyle.css}" type="text/css">
</head>
<body>
    <div class="layui-form timo-compile">
    <form th:action="@{/customer/customer/save}">
        <input type="hidden" name="id" th:if="${customer}" th:value="${customer.id}">
        <!-- <div class="layui-form-item">
            <label class="layui-form-label">锁定方</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="employee_src_Id" placeholder="请输入锁定方" th:value="${customer?.employee_src_Id}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">跟踪方</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="employee_dst_Id" placeholder="请输入跟踪方" th:value="${customer?.employee_dst_Id}">
            </div>
        </div> -->
        <div class="layui-form-item">
            <label class="layui-form-label">客户姓名</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="customer_name" placeholder="请输入客户姓名" th:value="${customer?.customer_name}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">年龄</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="age" placeholder="请输入年龄" th:value="${customer?.age}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">性别</label>
            <div class="layui-input-inline">
            
                <!-- <input class="layui-input" type="text" name="sex" placeholder="请输入性别" th:value="${customer?.sex}"> -->
                 <select class="timo-search-select" name="usersex" mo:dict="USER_SEX" mo-selected="${param.sex}">
                            	
                            </select>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">QQ</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="qq" placeholder="请输入QQ" th:value="${customer?.qq}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">微信</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="wx" placeholder="请输入微信" th:value="${customer?.wx}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">职业</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="work" placeholder="请输入职业" th:value="${customer?.work}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">资金量</label>
            <div class="layui-input-inline">
            	 <select class="timo-search-select" name="moneylevel" mo:dict="MONEY_LEVEL" mo-selected="${param.moneylevel}">
                            	
                            </select>
                <!-- <input class="layui-input" type="text" name="money" placeholder="请输入资金量" th:value="${customer?.money}"> -->
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">客户来源</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="source" placeholder="请输入客户来源" th:value="${customer?.source}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">备注</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="comments" placeholder="请输入备注" th:value="${customer?.comments}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">录入日期</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="time" placeholder="请输入录入日期" th:value="${customer?.time}">
            </div>
        </div>
        <div class="layui-form-item timo-finally">
            <button class="layui-btn ajax-submit"><i class="fa fa-check-circle"></i> 保存</button>
            <button class="layui-btn btn-secondary close-popup"><i class="fa fa-times-circle"></i> 关闭</button>
        </div>
    </form>
</div>
<script th:replace="/common/template :: script"></script>
<script type="text/javascript" th:src="@{/js/plugins/jquery-2.2.4.min.js}"></script>
<script type="text/javascript" th:src="@{/lib/zTree_v3/js/jquery.ztree.core.min.js}"></script>
<script type="text/javascript" th:src="@{/lib/zTree_v3/js/jquery.ztree.exedit.min.js}"></script>
<script type="text/javascript" th:src="@{/js/timoTree.js}"></script>
</body>
</html>